public void CanSaveNewContractWithoutADocument() { var store = new Store { Name = "store 1" }; store.SaveAndFlush(); var controller = new StoreContractController(); controller.ControllerContext = new ControllerContext(contextMock.Context, new RouteData(), controller); var newContract = new StoreContract { StartDate = DateTime.Now.AddDays(-30), TermInMonths = 24, AgreedPricePerPrintedRoll = -0.5m, AgreedPricePerNonPrintedRoll = 15, AgreedShippingRate = 50 }; controller.Create(store.Id, newContract); Assert.IsNotEmpty(store.Contracts.ToList(), "The stores contract list is empty"); }