Exemplo n.º 1
0
        public void Create_ShouldExecuteSuccessfully()
        {
            var model = new CreateLicenseViewModel()
            {
                Name        = "test",
                Description = "test",
            };

            var list = new List <License>();

            var repo    = DeletableEntityRepositoryMock.Get <License>(list);
            var service = new LicenseService(repo.Object);

            service.CreateAsync(model).Wait();

            Assert.Single(list);
        }