public void Calculate_Successful() { // assemble var service = new MenuBLL(); MenuModel menu = new MenuModel { items = new List <ItemModel> { item1, item2, item3 } }; List <MenuJson> input = new List <MenuJson> { new MenuJson { menu = menu } }; SumsModel expected = new SumsModel { sums = new List <int> { 18 } }; SumsModel actual = new SumsModel { }; //act actual = service.Calculate(input); //assert Assert.AreEqual(expected, actual); }