public void Create_Missing_Address() { var mockedStore = new Mock <IBotDataStore <BotData> >(); var target = new BotDataFactory(mockedStore.Object); Assert.ThrowsException <ArgumentNullException>(() => target.Create(null)); }
public void Create() { var address = new Address(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty); var mockedStore = new Mock <IBotDataStore <BotData> >(); var target = new BotDataFactory(mockedStore.Object); var actual = target.Create(address); actual.Should().BeOfType <JObjectBotData>(); }