This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"questions": [ | |
{ | |
"id": "2733ec12-9a03-4f31-bc97-afb4b2a9ed1e", | |
"title": "What kind of content do you typically cover?", | |
"description": "Choose up to four options", | |
"type": "multiChoice", | |
"maxSelection": 4, | |
"answers": [ | |
"Lifestyle", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- main | |
jobs: | |
- job: Job_Android | |
displayName: Build Android | |
pool: | |
vmimage: 'windows-latest' | |
steps: | |
- task: UseDotNet@2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- main | |
jobs: | |
- job: Job_Android | |
displayName: Build Android | |
- job: Job_iOS | |
displayName: Build iOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Starter pipeline | |
# Start with a minimal pipeline that you can customize to build and deploy your code. | |
# Add steps that build, run tests, deploy, and more: | |
# https://aka.ms/yaml | |
trigger: | |
- main | |
pool: | |
vmImage: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<WebView Source="{EmbeddedAsset MyPage.html}" | |
VerticalOptions="FillAndExpand" | |
HorizontalOptions="FillAndExpand"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms.EmbeddedAssets; | |
using Xamarin.Forms.Xaml; | |
[assembly: XamlCompilation(XamlCompilationOptions.Compile)] | |
[assembly: ExportAsset("MyPage.html", loadAssociatedResourcesInFolder: true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stryker-config": { | |
"mutation-level": "Advanced", | |
"reporters": [ "html", "json", "progress" ], | |
"thresholds": { | |
"high": 80, | |
"low": 60, | |
"break": 0 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyViewModelTests | |
{ | |
private readonly MyViewModel _myViewModel = new MyViewModel(); | |
[Theory] | |
[InlineData("111.111.111-11", true)] | |
[InlineData("111111.111-11", false)] | |
[InlineData("111.111111-11", false)] | |
[InlineData("111.111.11111", false)] | |
[InlineData("11111111111", false)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyViewModel | |
{ | |
private readonly Regex _cpfMask = new Regex(@"^\d{3}\.\d{3}\.\d{3}-\d{2}$", RegexOptions.Compiled); | |
public bool IsValidCPF(string cpfInput) | |
{ | |
if (string.IsNullOrWhiteSpace(cpfInput)) | |
return false; | |
return _cpfMask.Match(cpfInput).Success; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRepository<TEntity> where TEntity : Base | |
{ | |
ValueTask InsertAsync(TEntity entityToInsert); | |
ValueTask<TEntity> GetAsync(Expression<Func<TEntity, bool>> predicate); | |
ValueTask<TEntity> FirstOrDefaultAsync<TField>(Expression<Func<TEntity, TField>> orderBy); | |
ValueTask<TEntity> LastOrDefaultAsync<TField>(Expression<Func<TEntity, TField>> orderBy); | |
ValueTask<IEnumerable<TEntity>> GetManyAsync(Expression<Func<TEntity, bool>> predicate, int skip = 0, int limit = int.MaxValue); | |
ValueTask UpdateAsync(TEntity entityToUpdate, Expression<Func<TEntity, bool>> predicate); | |
ValueTask<bool> Exists(TEntity entity); | |
ValueTask<bool> DeleteAsync(TEntity entityToDelete); |
NewerOlder