コード例 #1
0
        public async Task ShouldGetPluginsForDatacard()
        {
            var datacardTotal = new DatacardTotals(new PluginTotals[0]);

            _datacardFake.SetupTotals(datacardTotal);

            var result = (OkNegotiatedContentResult <DatacardTotals>) await _totalsController.GetTotals(_datacardId);

            Assert.AreSame(datacardTotal, result.Content);
        }
コード例 #2
0
 public void SetupTotals(DatacardTotals totals)
 {
     _datacardTotals = totals;
 }