Exemplo n.º 1
0
        public void GetById_ShouldReturnValue()
        {
            var license = LicenseCreator.Create();
            var list    = new List <License>()
            {
                license
            };
            var repo    = DeletableEntityRepositoryMock.Get <License>(list);
            var service = new LicenseService(repo.Object);
            var result  = service.GetById <LicenseViewModel>(license.Id);

            Assert.NotNull(license);
            Assert.Equal(license.Id, result.Id);
        }