Esempio n. 1
0
 private UpdateClashModel BuildClashUpdateModelFromCreateModel(CreateClash createClashModel)
 {
     return(Fixture.Build <UpdateClashModel>()
            .With(x => x.Differences, createClashModel.Differences)
            .With(x => x.Description, createClashModel.Description)
            .With(x => x.ParentExternalidentifier, createClashModel.ParentExternalidentifier)
            .With(x => x.DefaultOffPeakExposureCount, 20)
            .With(x => x.DefaultPeakExposureCount, 20)
            .Create());
 }
Esempio n. 2
0
        private async Task CreateClashWithDifference(CreateClash createClashModel)
        {
            await Api.Create(new[] { createClashModel }).ConfigureAwait(false);

            await Task.Delay(GivenSteps.delayForSave).ConfigureAwait(false);
        }