コード例 #1
0
        private static async Task <OfficeElements> CreateTaskAsync()
        {
            _dateInterface = Substitute.For <IGetDate>();
            _dateInterface.GetCurrentDate().Returns(DateTime.Parse("2020-01-01"));

            MainSql.CreateConnection();
            await MainSql.CkeckConnectionAsync();

            await MainSql.CreateAsync(new TestUserHelpers(), new TestInternetAccess(), "1111");

            return(await OfficeElements.CreateAsync(_dateInterface).ConfigureAwait(false));
        }
コード例 #2
0
 public async Task CreateElementsAsync() =>
 _officeElements = await OfficeElements.CreateAsync(new GetDate());