This file contains hidden or 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
| var theAnswer = Config.Global.Get<int>("MyInteger"); // 42 |
This file contains hidden or 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
| Add("MyInteger",42); |
This file contains hidden or 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
| task Publish -depends Compile { | |
| Remove-Item $build_dir -Recurse -Force -ErrorAction SilentlyContinue #Cleanup the build directory | |
| exec { | |
| msbuild $source_dir\$project_name.sln /property:DeployOnBuild=true /property:PublishProfile=$project_config /property:UserName=<IISManagerUserName> /property:Password=<IISManagerUserPassword> /property:AllowUntrustedCertificate=true /v:q /nologo /clp:ErrorsOnly | |
| } | |
| } |
This file contains hidden or 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 System; | |
| using System.IO; | |
| using Zomg.DAL; | |
| namespace IntegrationTests.Fixtures | |
| { | |
| public class DbFixture<T> : IDisposable | |
| { | |
| private readonly string _connectionString; | |
| private static Checkpoint _checkpoint = new Checkpoint |
This file contains hidden or 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 System.Linq; | |
| using IntegrationTests.Fixtures; | |
| using Xunit; | |
| using Zomg.Features.Company; | |
| namespace IntegrationTests.Features.Company | |
| { | |
| public class CreateHandlerTests | |
| { | |
| [Collection("IntegrationTests.Features.Company.CreateHandlerTests")] |
This file contains hidden or 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 System; | |
| using System.IO; | |
| using Zomg.DAL; | |
| namespace IntegrationTests.Fixtures | |
| { | |
| public class DbFixture<T> : IDisposable | |
| { | |
| private readonly string _connectionString; | |
| public ApplicationDbContext Context { get; private set; } |
This file contains hidden or 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
| String.format("%d:%2s", get12HourFormat(hourOfDay), minute).replace(' ', '0') + getAmPm(hourOfDay) |
This file contains hidden or 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
| private String getAmPm(int hourOfDay) { | |
| return (hourOfDay >= 12) ? "PM" : "AM"; | |
| } | |
| private int get12HourFormat(int hourOfDay) { | |
| if (hourOfDay == 0) return 12; | |
| return (hourOfDay <= 12) ? hourOfDay : hourOfDay - 12; | |
| } |
This file contains hidden or 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
| private void setTimeFields(){ | |
| startTime.setOnClickListener(this); | |
| endTime.setOnClickListener(this); | |
| Calendar currentTime = Calendar.getInstance(); | |
| int hour = currentTime.get(Calendar.HOUR_OF_DAY); | |
| int minute = currentTime.get(Calendar.MINUTE); | |
| startTimePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() { | |
| @Override |
This file contains hidden or 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
| @Override | |
| public void onClick(View view) { | |
| if (view == entryDate){ | |
| datePickerDialog.show(); | |
| } | |
| } |