public void ProteinService_Get_UnavailableProtein() { // Arrange var service = new ProteinService(new ProteinDataContainer(), null, null); // Act var p = service.Get(2482); // Assert Assert.IsNull(p); }
public void ProteinService_Get_AvailableProtein() { // Arrange var protein = CreateValidProtein(2483); var dataContainer = new ProteinDataContainer(); dataContainer.Data.Add(protein); var service = new ProteinService(dataContainer, null, null); // Act var p = service.Get(2483); // Assert Assert.AreSame(protein, p); }