예제 #1
0
        public void CanCompareWrmsSystems()
        {
            var instance = new WrmsSystem();

            instance.Code = "ABC";

            var instanceToCompareTo = new WrmsSystem();

            instanceToCompareTo.Code = "ABC";

            instance.ShouldEqual(instanceToCompareTo);
        }
예제 #2
0
        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);
        }