public void MutantAllocationOverwritesOriginal_ResultEqualsMutant() { // Given var mutation = MockSeniorTeam.GetMutantSeniorTeam(); var fooAllocation = MockAllocation.GetTestAllocation(); // When AllocationProvider.SetSeniorTeamAllocation(fooAllocation.SeniorTeam, mutation.AsSeniorTeam); // Then Assert.True(EqualMethods.SeniorTeamStoreEqual(mutation, fooAllocation.SeniorTeam)); }
private void ValidAllocation_Ok() { // Given var fooAllocation = MockAllocation.GetTestAllocation(); var fooProvider = new AllocationProvider(fooAllocation); var fooController = new TeamController(fooProvider); var fooNewSeniorAllocation = new SeniorAllocationRequest(MockSeniorTeam.GetMutantSeniorTeam().AsSeniorTeam); // When var seniorRes = fooController.AddAllocationToSeniorTeam(fooNewSeniorAllocation); // Then Assert.IsType <OkObjectResult>(seniorRes); }