public async Task SignOutTraineeAsyncShouldSaveCorrectDataWithValidProgramIdAndTraineeId() { // Arrange var db = this.GetDatabase(); var programService = new ProgramService(db); const int programId = 1; const string traineeId = "TestTrainee"; var program = new Program { Id = programId, StartDate = DateTime.MaxValue, Clients = new List <TraineeProgram>() }; db.Add(program); await db.SaveChangesAsync(); // Act var result = await programService.SignUpUserAsync(programId, traineeId); var signOut = await programService.SignOutUserAsync(programId, traineeId); // Assert result .Should() .Be(true); signOut .Should() .Be(true); }