コード例 #1
0
        public void SetUp()
        {
            TestHelper.SetDataDirectoryToAppDirectory();

            var context = new ExampleAppContext("MvcBootstrap.ExampleApp.Data.Tests");

            context.Database.Delete();

            var repository = new EmployeesRepository(context);

            var employee = repository.CreateAndAdd();

            employee.Name = "Fred";

            repository.SaveChanges();
        }