Beispiel #1
0
 public override void Given()
 {
     MockResult.IsSuccess = false;
     MockResult.Uln       = 1234567891;
     MockResult.ProfileId = 1;
     ResultLoader.IsCoreResultChangedAsync(AoUkprn, Arg.Any <ManageCoreResultViewModel>()).Returns(true);
     ResultLoader.ChangeCoreResultAsync(AoUkprn, ViewModel).Returns(MockResult);
 }
        public override void Given()
        {
            ViewModel = new ManageCoreResultViewModel
            {
                ProfileId         = 1,
                ResultId          = 1,
                Uln               = 1234567890,
                SelectedGradeCode = "PCG1"
            };

            ChangeResultResponse = new ChangeResultResponse
            {
                IsSuccess = true,
                Uln       = 1234567890,
                ProfileId = 1
            };

            ResultLoader.IsCoreResultChangedAsync(AoUkprn, ViewModel).Returns(true);
            ResultLoader.ChangeCoreResultAsync(AoUkprn, ViewModel).Returns(ChangeResultResponse);
        }
 public override void Given()
 {
     ResultLoader.IsCoreResultChangedAsync(AoUkprn, Arg.Any <ManageCoreResultViewModel>()).Returns(mockResult);
 }
Beispiel #4
0
 public override void Given()
 {
     MockResult = null;
     ResultLoader.IsCoreResultChangedAsync(AoUkprn, Arg.Any <ManageCoreResultViewModel>()).Returns(true);
     ResultLoader.ChangeCoreResultAsync(AoUkprn, ViewModel).Returns(MockResult);
 }