public void CanCompareWrmsSystems() { var instance = new WrmsSystem(); instance.Code = "ABC"; var instanceToCompareTo = new WrmsSystem(); instanceToCompareTo.Code = "ABC"; instance.ShouldEqual(instanceToCompareTo); }
public void CanGetWrmsSystem() { // Establish Context WrmsSystem wrmsSystemToExpect = WrmsSystemInstanceFactory.CreateValidTransientWrmsSystem(); _wrmsSystemRepository.Expect(r => r.Get(1)) .Return(wrmsSystemToExpect); // Act WrmsSystem wrmsSystemRetrieved = _wrmsSystemManagementService.Get(1); // Assert wrmsSystemRetrieved.ShouldNotBeNull(); wrmsSystemRetrieved.ShouldEqual(wrmsSystemToExpect); }